package com.sendi.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Zhiweiinfo entity.

CREATE TABLE `zhiweiinfo` (
  `id` INTEGER(11) NOT NULL AUTO_INCREMENT,
  `zwname` VARCHAR(100) DEFAULT NULL COMMENT '职位名称\0\0R\0',
  `zwenname` VARCHAR(20) DEFAULT NULL COMMENT '职位英文名称\0\0\0st\0',
  PRIMARY KEY (`id`))ENGINE=MyISAM CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' COMMENT='职位管理 ';
 */
@Entity
@Table(name = "zhiweiinfo")
public class Zhiweiinfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private String zwname;
	private String zwenname;

	// Constructors

	/** default constructor */
	public Zhiweiinfo() {
	}

	/** full constructor */
	public Zhiweiinfo(String zwname, String zwenname) {
		this.zwname = zwname;
		this.zwenname = zwenname;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "zwname", length = 100)
	public String getZwname() {
		return this.zwname;
	}

	public void setZwname(String zwname) {
		this.zwname = zwname;
	}

	@Column(name = "zwenname", length = 20)
	public String getZwenname() {
		return this.zwenname;
	}

	public void setZwenname(String zwenname) {
		this.zwenname = zwenname;
	}

}